//
//  CommonTools.swift
//  WeiBo
//
//  Created by Xmen on 16/9/22.
//  Copyright © 2016年 111. All rights reserved.
//

import UIKit

//  切换根视图控制器的通知名
let SwitchRootVCNotification = "SwitchRootVCNotification"
//  屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width
//  屏幕的高度
let ScreenHeight = UIScreen.main.bounds.size.height
// 随机颜色
func RandomColor () -> UIColor {
    let red = CGFloat(arc4random() % 256)
    let green = CGFloat(arc4random() % 256)
    let blue = CGFloat(arc4random() % 256)
    
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
    
}
